<#include "/template/blog/header.ftl">
	<div class="banner border-top-bottom">
		<ul class="carousel">
			<@shishuo_headline_list_tag>
				<#list tag_headline_list as headline>
					<li class="item" style="background:#212e41 url('${BASE_PATH}/${headline.picture}') center no-repeat;height:250px;"></li>
					<#break />
				</#list>
			</@shishuo_headline_list_tag>
		</ul>
	</div>
	<br />
	<br />

	<div class="container">
			<h2 class="border-bottom padding-bottom text-main">
				<@shishuo_folder_list_tag folderId=0>
					<#list tag_folder_list as tag_folder>
						<#if newFolder==tag_folder.folderId>
							<span class="icon-caret-right"></span>  ${tag_folder.name}
						</#if>
					</#list>
				</@shishuo_folder_list_tag>
			</h2>
			<br />
			<div class="form-inline margin-big-bottom">
				<div class="form-group">
					<div class="field">
						<div class="input-group"><span class="addon icon-key"></span>
							<input type="text" class="input" id="auth_data" name="auth_data" size="50" placeholder="经销商姓名、微信号均可查询" />
						</div>
					</div>
				</div>
				<div class="form-button">
					<button class="button bg-main" type="button" id="auth_search">查询</button>
				</div>
			</div>
			<blockquote id="auth_info" style="width: 50%;">
				输入查询条件进行查询
			</blockquote>
			<br>
		</div>
	</div>
	<br />
	<br />
	<script>
		function search(){
			var auth_data=$("#auth_data").val();
			if(auth_data==''){
				return false;
			}
			$.ajax({
				type:"get",
				url:"${BASE_PATH}/folder/getAuthorization.json?condition="+auth_data,
				dataType : 'json',
				success : function(data) {
					if (data.result) {
						$("#auth_info").html("<img src='${BASE_PATH}/"+data.msg+"' style='width:99%'/>");
					}else{
						$("#auth_info").html("没有查到相应信息!");
					}
				}
			});
		}
		$("#auth_search").click(function(){
			search();
		});
		$("#auth_data").keydown(function(e){
			if(e.keyCode==13){
			   search();
			}
			
		});
	</script>
	<#include "/template/blog/footer.ftl">